package com.example.demo.repository.two;

import com.example.demo.entity.two.UnitInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by pengwan on 2017/6/25.
 */
public interface UnitInfoRepository extends JpaRepository<UnitInfo, Long> {
    public List<UnitInfo> findByUnitIDInOrderByUnitIDAsc(List<Integer> unitIDList);
    public List<UnitInfo> findByUnitIDBetweenOrderByUnitIDAsc(int firstUnitID,int lastUnitID);

    public UnitInfo findByUnitID(Integer Id);
}
